import request from '@/utils/request'

//登录
export function login(params) {
  return request({
    url: '/user/login',
    method: 'post',
    params: params
  })
}
//获取图形验证码
export function getCaptcha(params) {
  return request({
    url: '/admin/login/captcha',
    method: 'get',
    params: params
  })
}
//登出
export function logout() {
  return request({
    url: '/vue-element-admin/user/logout',
    method: 'post'
  })
}
//获取Token
export function getToken() {
  return request({
    url: '/jwt/login?mobile=13246678667',
    method: 'POST'
  })
}
